package top.purity.framework.orm;

import jakarta.persistence.Column;
import jakarta.persistence.MappedSuperclass;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.TenantId;

/**
 * @version 1.0
 * @Author Lmh
 * @Description
 * @CreateTime 2023-09-22 21:42
 */

@Data
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
public class BaseTenantDO extends BaseDO {

    @TenantId
    @Column(name = "tenant_id", nullable = false)
    @Comment("租户id")
    private String tenantId;

}
